/* 
 * Copyright (c) 2019, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.boot.domain.enumdef;

import lombok.AllArgsConstructor;

/**
 * 数据标志
 * @author xiongcong
 * @date 2019-02-25
 */
@AllArgsConstructor
public enum EDataFlag {
    YES(1, "是"),
    NO(0, "否");
    public int key;
    public String name;
    
    public static boolean yes(Integer flag) {
        if (flag != null && flag == YES.key) {
            return true;
        }
        return false;
    }
}
